#pragma once
#include "Actor.h"
#include "Camera.h"
#include "ReflectionEffect.h"
#include "RefractionEffect.h"
namespace mini
{
	class CWaterEffect : public CActor
	{
	public:
		CWaterEffect();
		virtual ~CWaterEffect();
		virtual void updateFrame(float fDeltaTime) override;

		void initReflection(CCamera* pCamear);
		void initRefraction(CCamera* pCamear);
		void setWaterHeight(float fHeight);
		float getWaterHeight();

	private:
		CReflectionEffect* mpReflectionActor = nullptr;
		CRefractionEffect* mpRefractionActor = nullptr;
		CPoint4F		  mWaterInfo;
		float mTranslation = 0.0f;
		float mHeight = 0.0f;
	};
}